package com.jic.veteran.dao;

import com.jic.veteran.dto.AlumniAddAccommodationParam;
import com.jic.veteran.dto.AlumniAddNewsParam;
import com.jic.veteran.dto.AlumniAddTeacherParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface AlumniSchoolAdminMapper {

    int schoolInfo(@Param("content") String content,
                      @Param("schoolName") String schoolName,
                      @Param("icon1") String icon1,
                      @Param("user") String user,
                      @Param("date") Date date);

    int upTeacherStatus(@Param("id") Integer id,
                   @Param("status") Integer status);

    int addTeacher(@Param("alumniAddTeacherParam") AlumniAddTeacherParam alumniAddTeacherParam,
                   @Param("user") String user,
                   @Param("date") Date date);

    int aditTeacher(@Param("id") Integer id,
                   @Param("alumniAddTeacherParam") AlumniAddTeacherParam alumniAddTeacherParam,
                   @Param("user") String user,
                   @Param("date") Date date);


    int upNewsStatus(@Param("id") Integer id,
                        @Param("status") Integer status);

    int addNews(@Param("alumniAddNewsParam") AlumniAddNewsParam alumniAddNewsParam,
                   @Param("user") String user,
                   @Param("date") Date date);

    int aditNews(@Param("id") Integer id,
                    @Param("alumniAddNewsParam") AlumniAddNewsParam alumniAddNewsParam,
                    @Param("user") String user,
                    @Param("date") Date date);


    int addAccommodation(@Param("alumniAddAccommodationParam") AlumniAddAccommodationParam alumniAddAccommodationParam,
                @Param("user") String user,
                @Param("date") Date date);

    int aditAccommodation(@Param("id") Integer id,
                 @Param("alumniAddAccommodationParam") AlumniAddAccommodationParam alumniAddAccommodationParam,
                 @Param("user") String user,
                 @Param("date") Date date);

}
